package com.mofeng.myshop.controller.portal;


import com.mofeng.myshop.service.ISettingService;
import com.mofeng.myshop.until.R;
import io.swagger.v3.oas.annotations.Operation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 网站基础设置 前端控制器
 * </p>
 *
 * @author MoFeng
 * @since 2024-04-14
 */
@RestController
@RequestMapping("/portal/setting")
@RequiredArgsConstructor
public class SettingController {

    private final ISettingService settingService;

    @Operation(summary = "获取网站标题")
    @GetMapping("/webInfo")
    public R getWebInfo() {
        return settingService.getWebInfo();
    }

    @Operation(summary = "获取网站期限")
    @GetMapping("/timeout")
    public R getSystemTime() {
        return settingService.getSystemTime();
    }

}
